//
//  zcViewController.m
//  music
//
//  Created by LT on 2019/3/13.
//  Copyright © 2019 liu. All rights reserved.
//

#import "zcViewController.h"
#import <WebKit/WebKit.h>
@interface zcViewController ()<UIWebViewDelegate>
@property (nonatomic,strong)WKWebView *webView;
@property (nonatomic,strong)UIButton *centerButton;
@end

@implementation zcViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor redColor];
    [self webView];
    
}

-(WKWebView *)webView{
    if (_webView==nil) {
        self.webView=[[WKWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
        NSURL *url=[NSURL URLWithString:@"https://ssl.zc.qq.com/v3/index-chs.html"];
        NSURLRequest *request=[NSURLRequest requestWithURL:url];
        [self.webView loadRequest:request];
        self.webView.navigationDelegate=self;
        [self.view addSubview:self.webView];
    }
    return _webView;
}



@end
